<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('contract_payment_receive/add')}">
			<div class="form-group">
				<label class="col-sm-2 control-label">
					<span class="form-required">*</span>到账日期
				</label>
				<div class="col-md-3 col-sm-6">
					<input type="text" class="form-control js-bootstrap-date" name="receive_date" autocomplete="off">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">
					<span class="form-required">*</span>到账金额
				</label>
				<div class="col-md-3 col-sm-6">
					<input type="text" class="form-control" name="amount">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">
					<span class="form-required">*</span>到账方式
				</label>
				<div class="col-md-3 col-sm-6">
					<select class="form-control" name="type">
						<option value="">---请选择---</option>
						<option value="微信">微信</option>
						<option value="支付宝">支付宝</option>
						<option value="银行卡">银行卡</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">
					<span class="form-required"></span>收款账号
				</label>
				<div class="col-md-3 col-sm-6">
					<input type="text" class="form-control" name="account">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">
					<span class="form-required"></span>收款凭证
				</label>
				<div class="col-md-3 col-sm-6">
					<input type="hidden" name="image" id="thumb" value="">
                    <a href="javascript:uploadOneImage('图片上传','#thumb');">
                        <img src="__TMPL__/public/assets/images/default-thumbnail.png" id="thumb-preview"
                             width="135" style="cursor: hand"/>
                    </a>
                    <input type="button" class="btn btn-sm"
                           onclick="$('#thumb-preview').attr('src','__TMPL__/public/assets/images/default-thumbnail.png');$('#thumb').val('');return false;"
                           value="取消图片">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">
					<span class="form-required"></span>备注
				</label>
				<div class="col-md-3 col-sm-6">
					<input type="text" class="form-control" name="remark">
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<input type="hidden" value="{:input('plan_id')}" name="plan_id">
					<input type="hidden" value="{:input('contract_id')}" name="contract_id">
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>